import Mock from 'mockjs'
import log from '@/util/logger'

Mock.mock(process.env.VUE_APP_API_BASE_URL + 'user/get_interest', 'post', (request) => {
    log.mock(request.url, JSON.parse(request.body))
    const { query } = JSON.parse(request.body)
   
            return {
                status: { code: 0, message: '关注作者信息获取成功' },
                data: {
                    total:4,
                    authorList:[
                    {
                        author_id: 1,
                        author_name: "LHC energies",
                        author_nationality: "Universiti Putra Malaysia",
                        url:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=1",
                        domain: "Animal nutrition",
                        cite_num: 89565
                    },
                    {
                        author_id: 2,
                        author_name: "LHC energies",
                        author_nationality: "Universiti Putra Malaysia",
                        url:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",
                        domain: "Water",
                        cite_num: 89569865
                    },
                    {
                        author_id: 3,
                        author_name: "LHC energies",
                        author_nationality: "Universiti Putra Malaysia",
                        url:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",
                        domain: "Water",
                        cite_num: 89569865
                    },
                    {
                        author_id: 4,
                        author_name: "LHC energies",
                        author_nationality: "Universiti Putra Malaysia",
                        url:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",
                        domain: "Water",
                        cite_num: 89569865
                    },
                    
                    ]
                },
            }
        }
       
            
        
)